export const parseParams = (url: string, data: any) => {
    if (!data) {
        return url
    }
    let tempArr = []
    for (let i in data) {
        let key = encodeURIComponent(i)
        let value = encodeURIComponent(data[i])
        tempArr.push(key + '=' + value)
    }
    return `${url}?${tempArr.join('&')}`
}